package lobby
{
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import lobby.exchangeddata.HashTable;
	
	/**
	 * ...
	 * @author Nguyen Hoang Giang (Tom)
	 */
	public class HistoryPanelBase extends MovieClip
	{
		protected static const MAX_NUM_CHECKERS:int = 66;
		protected var hisBoard:Sprite = new Sprite();
		protected var rowNum:int = 6;
		protected var rowInd:int = 0;
		protected var colInd:int = 0;
		protected var hisData:Array;
		
		public function HistoryPanelBase()
		{
			addChild(hisBoard);
		}
		
		public function initBoard(resultArr:Array):void
		{
		}
		
		public function attachIcon(type:String):MovieClip
		{
			return null;
		}
		
		public function deleteTableHistory():void 
		{
			removeHistory();
			hisData = new Array();
		}
		
		protected function removeHistory():void
		{
			var numberChid:int = hisBoard.numChildren;
			if (numberChid > 0)
			{
				for (var j:int = 0; j < numberChid; j++)
				{
					hisBoard.removeChildAt(0);
				}
				rowInd = 0;
				colInd = 0;
			}
		}
		
		public function set setHistory(his:Array):void
		{
			this.hisData = his;
		}
		
		public function get getHistory():Array
		{
			return this.hisData;
		}
	}

}